#include<stdio.h>
#include <stdlib.h>
#include <unistd.h>
int main()
{
	pid_t pid;
	printf("before:pid = %d \n",getpid());
	if((pid=fork())==-1)
	{
		printf("exit\n");
		exit(1);
	}
	printf("after:pid = %d , fork return %d , ppid = %d\n",getpid(),pid,getppid());
	sleep(1);
	return 0;
}
